<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户登陆</title>
</head>
<body>
<h1>用户登陆</h1>
<h2 style="color: red" th:text="${error}"></h2>
<form action="/doLogin" method="post">
    用户名: <input type="text" name="user_name"><br>
    密码: <input type="password" name="userpwd"><br>
    <input type="submit" value="登陆" />
</form>
</body>
</html>